var EventEmitter = require("events").EventEmitter;
var ee = new EventEmitter();

var  listener1 = function(foo,bar){
	console.log("第一个监听器")
}
var  listener2 = function(foo,bar){
	console.log("第二个监听器")
}

ee.on("some_events",listener1);
ee.on("some_events",listener2);

/**
 * EventEmitter.removeListener("events",ListenerName)  删除一个监听
 * 参数1 ：event 字符串，事件名
 * 参数2 ：监听器名称
 * 
 */
 
 //第一次触发事件
 
 ee.emit("some_events","wilson","zhong");
 
 
 ee.removeListener("some_events",listener1);
 
  console.log("删除后")
 //第二次触发事件
 ee.emit("some_events","wilson","zhong");